import http from '@/utils/request'

export default {
  async getRoleListApi(params) {
    return await http.get("/api/role/list", params);
  },
  async addRoleApi(params) {
    return await http.post("/api/role/add", params);
  },
  async updateRoleApi(params) {
    return await http.put("/api/role/update", params);
  },
  async getAssignTreeApi(params){
    return await http.get("/api/role/getAssignPermissionTree",params);
  },
  async assignSaveApi(params){
    return await http.post("/api/role/saveRoleAssign",params);
  }
}